import React from 'react';
import ImageCard from './ImageCard';
import './ImageList.css';


export default (props) => {

    const photos = props.image.map((image) => {
        return <ImageCard
            image={image}
            key={image.id} />

    });

    return (
        <div className="image-list">
            {photos}
        </div>
    )
}